/**
 * 查询列表接口
 * @param name
 * @returns {*}
 * @author 千锋健哥
 */
const findDeviceTypePage = (params) => {
  return $axios({
    url: managerGateway + '/user/device-type/list',
    method: 'post',
    data:{...params}
  })
};


/**
 * 查询所有行业
 * @author 千锋健哥
 */
const findIndustryList = () =>{
    return $axios({
        url: managerGateway + '/user/industry/all',
        method:'post'
    });
};


/**
 * 新增接口
 * @param params
 * @returns {*}
 * @author 千锋健哥
 */
const addDeviceType = (params) => {
  return $axios({
    url: managerGateway + '/user/device-type/add',
    method: 'post',
    data: { ...params }
  })
}


/**
 * 根据id查询
 * @param id
 * @returns {*}
 * @author 千锋健哥
 */
const findDeviceTypeById = (id) => {
  return $axios({
    url: managerGateway + '/user/device-type/id/'+id,
    method: 'get'
  })
}

/**
 *  根据指定id删除的接口
 * @param id
 * @author 千锋健哥
 */
const deleteDeviceTypeById = (id) => {
  return $axios({
    url: managerGateway + '/user/device-type/delete/'+id,
    method: 'post'
  })
}

/**
 * 修改接口
 * @param params
 * @returns {*}
 * @author 千锋健哥
 */
const editDeviceType = (params) => {
  return $axios({
    url: managerGateway + '/user/device-type/update',
    method: 'post',
    data: { ...params }
  })
}

